<% String action = ""; %>
<%@ include file="header.inc" %>

<table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" width="320">

<%@ include file="product.inc" %>

</td><td valign="top" style="border-left:1px solid silver; padding-left:10px">
<% if(b!=null && !be.isEmpty()) { %>
<form action="<%=contextPath%>/basket.do" method="post">
<input type="submit" name="submit" value="Actualizar">
<input type="submit" name="submit" value="Facturar &gt;">
<br>
<br>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<th align="left" width="200">Producto</th>
<th align="center" width="30">(-)</th>
<th align="center" width="50">Cant.</th>
<th align="center" width="30">Of.</th>
<th align="right" width="50">P. Unit.</th>
<th align="right" width="50">Total</th>
</tr>
<% for(int i=0; i<be.size(); i++){ com.zara.store.client.clientmodel.BasketLine bl = (com.zara.store.client.clientmodel.BasketLine)be.get(i); %>

<tr>
<td><%=bl.getProductName()%> (<%=bl.getProductBarcode()%>)</td>
<td align="center"><input name="productRemove" style="border:0" type="checkbox" value="<%=i%>"></td>
<td align="center"><input name="productAmount" style="font-size:x-small;border:1px solid silver;text-align:right"  value="<%=bl.getAmount()%>" size="1"></td>
<td align="center"><input name="productOffer" style="border:0" type="checkbox" value="<%=i%>" <%if(bl.getOffer()){%>checked="checked"<%}%>></td>
<td align="right">$<%=bl.getPrice()%></td>
<td align="right">$<%=bl.getLineTotal()%></td>
</tr>

<% } %>
<tr>
<td></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="right"></td>
<td align="right">$<%=b.getTotal()%></td>
<tr>
</table>
<% } %>
</td></tr></table>

<%--
<html:form action="product.do" focus="name" >
<html:text property="barcode" size="10" maxlength="10" styleClass="barcode"/>
<html:submit value="search" styleClass="barcode"></html:submit>
</html:form>
--%>

<%@ include file="footer.inc" %>